package com.min.netty.model;

import lombok.Data;
import lombok.RequiredArgsConstructor;

import java.net.InetSocketAddress;

/**
 * Create By minzhiwei On 2018/9/10 16:53
 * TODO 功能描述
 * @author sirmin
 */
@Data
@RequiredArgsConstructor
public class LogEvent {
    public static final byte SEPARATOR = (byte) '@';
    private final InetSocketAddress source;
    private final String logfile;
    private final String msg;
    private final long received;
    public LogEvent(String logfile, String msg) {
        this(null, logfile, msg, -1);
    }
}
